---
title: Invalid value returned by getStaticPaths.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **InvalidGetStaticPathsReturn**: Invalid type returned by `getStaticPaths`. Expected an `array`, got `RETURN_TYPE`

## 무엇이 잘못되었나요?

`getStaticPaths`의 반환 값은 객체 배열이어야 합니다.

```ts title="pages/blog/[id].astro"
export async function getStaticPaths() {
	return [ // <-- 배열
		{ params: { slug: "blog" } },
		{ params: { slug: "about" } }
	];
}
```

**더 보기:**

-  [`getStaticPaths()`](/ko/reference/routing-reference/#getstaticpaths)
-  [`params`](/ko/reference/api-reference/#params)
